//
//  ViewController.m
//  QRCodeDemo
//
//  Created by Mac mini on 16/1/19.
//  Copyright © 2016年 JuniorCodingPerson. All rights reserved.
//

#import "RootViewController.h"

#import "KKQRCodeViewController.h"

@interface RootViewController ()

@end

@implementation RootViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view, typically from a nib.
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

- (IBAction) scanning:(id)sender {
    
    KKQRCodeViewController *codeViewController = [[KKQRCodeViewController alloc] init];
    
    [self presentViewController: codeViewController animated: true completion: nil];
//    [self.navigationController pushViewController: codeViewController animated: true];
}

@end
